﻿using System.Collections.Generic;
using System.Runtime.Serialization;

namespace IMDBApi.Contracts.Entities.Title.Episodes
{
    [DataContract]
    public class Episodes
    {
        [DataMember(Name = "exp")]
        public int Exp { get; set; }

        [DataMember(Name = "data")]
        public Data Data { get; set; }
    }

    [DataContract]
    public class Data
    {
        [DataMember(Name = "tconst")]
        public string Tconst { get; set; }

        [DataMember(Name = "seasons")]
        public List<Season> Seasons { get; set; }

        [DataMember(Name = "type")]
        public string Type { get; set; }

        [DataMember(Name = "title")]
        public string Title { get; set; }

        [DataMember(Name = "year")]
        public string Year { get; set; }
    }

    [DataContract]
    public class Season
    {
        [DataMember(Name = "label")]
        public string Label { get; set; }

        [DataMember(Name = "token")]
        public string Token { get; set; }

        [DataMember(Name = "list")]
        public List<List> List { get; set; }
    }

    [DataContract]
    public class List
    {
        [DataMember(Name = "tconst")]
        public string Tconst { get; set; }

        [DataMember(Name = "release_date")]
        public ReleaseDate ReleaseDate { get; set; }

        [DataMember(Name = "type")]
        public string Type { get; set; }

        [DataMember(Name = "title")]
        public string Title { get; set; }

        [DataMember(Name = "year")]
        public string Year { get; set; }
    }

    [DataContract]
    public class ReleaseDate
    {
        [DataMember(Name = "normal")]
        public string Normal { get; set; }

        [DataMember(Name = "text")]
        public object Text { get; set; }
    }
}
